//
//  ModifyPayPasswordControl.m
//  FreeTime
//
//  Created by 王江华 on 16/9/1.
//  Copyright © 2016年 SRDZ.com. All rights reserved.
//

#import "ModifyPayPasswordControl.h"
#import "XFPasswordTextView.h"
#import "Header.h"
#import "SetAliPasswordControl.h"
@interface ModifyPayPasswordControl ()

@property(nonatomic,strong)XFPasswordTextView *passTextView;


@property(nonatomic,strong)UILabel *propertyLabel;
@end

@implementation ModifyPayPasswordControl

- (void)viewDidLoad {
    [super viewDidLoad];
   
    self.navigationItem.title=@"修改支付密码";
    
    
    CGPoint center=self.view.center;
    
    self.propertyLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 0, 200, 15)];
    
    self.propertyLabel.text=@"请输入原来的支付密码，以验证身份";
    
    self.propertyLabel.textAlignment=NSTextAlignmentCenter;
    
    self.propertyLabel.textColor=[ImageUtil colorWithRgb:0xe6e6e6];
    
    self.propertyLabel.center=CGPointMake(center.x, 30);
    
    [self.view addSubview:self.propertyLabel];
    
    _passTextView = [[XFPasswordTextView alloc] initWithFrame:CGRectMake(0, 0, 200, 40)];
    _passTextView.elementCount = 6;
    _passTextView.center = CGPointMake(center.x, 90);
    _passTextView.elementColor = [ImageUtil colorWithRgb:0xe6e6e6];
    [self.view addSubview:_passTextView];
    
    
    
    __weak typeof (self)weakself=self;
    
    _passTextView.passwordBlock = ^(NSString *password) {
        
        
        SetAliPasswordControl  *ali=[[SetAliPasswordControl alloc]init];
        
        [weakself.navigationController pushViewController:ali animated:YES];
        
        
        
    };

    
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
